package com.sxran.im.handler;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sxran.im.dao.ImNotificationMapper;
import com.sxran.im.info.ImConversation;
import com.sxran.im.info.ImNotification;
import com.sxran.im.service.ConversationService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class ClearUnreadCountCmdHandler extends AbstractCmdHandler<ImConversation>{
    @Resource
    private ConversationService conversationService;
    @Override
    public Object doBeanService(ImConversation json) {
        conversationService.clearUnreadCount(json.getUserId(),json.getId());
        return json;
    }



}
